package cn.sportvip.entity.sport;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.sportvip.entity.IdEntity;
/**
 * 课程
 * @author tao
 */
@Entity
@Table(name = "sport_course")
public class Course extends IdEntity{

	private static final long serialVersionUID = 1L;

	/**包括那些教练*/
	@ManyToOne(targetEntity = Coach.class, fetch = FetchType.EAGER)
	@JoinColumn(name = "coach_id")
	private Coach coach;
	/**属于哪个场馆*/
	@ManyToOne(fetch = FetchType.EAGER, targetEntity = Gymnasium.class)
	@JoinColumn(name = "gymnasium_id")
	private Gymnasium gymnasium;
	/**上课时间*/
	@Column(name = "school_time")
	private String schoolTime;
	/**特色*/
	private String advantage;
	/**一个课时价格*/
	private double price;
	/**课程名称*/
	private String name;
	/**课程描述*/
	private String description;
	
	// ------------------------------------
	
	public String getSchoolTime() {
		return schoolTime;
	}
	public Coach getCoach() {
		return coach;
	}
	public void setCoach(Coach coach) {
		this.coach = coach;
	}
	public void setSchoolTime(String schoolTime) {
		this.schoolTime = schoolTime;
	}
	public String getAdvantage() {
		return advantage;
	}
	public void setAdvantage(String advantage) {
		this.advantage = advantage;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Gymnasium getGymnasium() {
		return gymnasium;
	}
	public void setGymnasium(Gymnasium gymnasium) {
		this.gymnasium = gymnasium;
	}
}
